<?php
	require_once("classes/bd/Persistencia.class.php");
	$p = Persistencia::getInstance();
	
	$colecaoDados = $p->capturaColecaoCompleta("Blog");
?>

<HTML>
<body style="font-family:Arial; font-size:12px;"><center>
<h1>BLOGS</h1>
	<? foreach ($colecaoDados as $dado) : ?>
	<table width="500" border="0">
		<tr>
			<td align="center"><h2><b><?=$dado->getTitle(); ?></b></h2></td>
		</tr>
		<tr>
			<td><?=$dado->getContent(); ?></td>
		</tr>
		<tr>
			<td align="right"><?=$dado->getPostTime(); ?></td>
		</tr>
	</table><hr width="500"/><p/>
	<? endforeach; ?>
	<a href="newBlog.php">Adicionar novo Blog</a>
</center></body>
</HTML>